<form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
	<script type="text/javascript">
		var flow_no_payment = "{$lang.flow_no_payment}";
		var flow_no_shipping = "{$lang.flow_no_shipping}";
	</script>
	<div class="flowBox">
		<h6>
			<span>{$lang.goods_list}</span>
			<if condition="$allow_edit_cart">
				<a href="flow.php" class="f6">{$lang.modify}</a>
			</if>
		</h6>
		<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
			<tr>
				<th bgcolor="#ffffff">{$lang.goods_name}</th>
				<th bgcolor="#ffffff">{$lang.goods_attr}</th>
				<if condition="$show_marketprice">
					<th bgcolor="#ffffff">{$lang.market_prices}</th>
				</if>
				<th bgcolor="#ffffff">
					<if condition="$gb_deposit">{$lang.deposit}<else/>{$lang.shop_prices}</if>
				</th>
				<th bgcolor="#ffffff">{$lang.number}</th>
				<th bgcolor="#ffffff">{$lang.subtotal}</th>
			</tr>				
			<volist name="goods_list" id="goods">
			<tr>
				<td bgcolor="#ffffff">
				<if condition="$goods['goods_id'] gt 0 and $goods['extension_code'] eq 'package_buy'">
					<a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">{$goods.goods_name}<span style="color:#FF0000;">（{$lang.remark_package}）</span></a>
					<div id="suit_{$goods.goods_id}" style="display:none">
						<volist name="$goods['package_goods_list']" id="package_goods_list">
							<a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">{$package_goods_list.goods_name}</a><br />
						</volist>
					</div>
				<else/>
					<a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
					<if condition="$goods['parent_id'] gt 0">
						<span style="color:#FF0000">（{$lang.accessories}）</span>
					<elseif condition="$goods['is_gift']"/>
						<span style="color:#FF0000">（{$lang.largess}）</span>
					</if>
				</if>
				<if condition="$goods['is_shipping']">
					(<span style="color:#FF0000">{$lang.free_goods}</span>)
				</if>
				</td>
				<td bgcolor="#ffffff">{$goods.goods_attr}</td>
				<if condition="$show_marketprice">
					<td align="right" bgcolor="#ffffff">{$goods.formated_market_price}</td>
				</if>
				<td bgcolor="#ffffff" align="right">{$goods.formated_goods_price}</td>
				<td bgcolor="#ffffff" align="right">{$goods.goods_number}</td>
				<td bgcolor="#ffffff" align="right">{$goods.formated_subtotal}</td>
			</tr>				
			</volist>
			<if condition="$gb_deposit neq 1">
			<tr>
				<td bgcolor="#ffffff" colspan="7">
				<if condition="$discount gt 0">
					{$your_discount}<br />
				</if>
				{$shopping_money}
				<if condition="$show_marketprice">
					，{$market_price_desc}
				</if>
				</td>
			</tr>
			</if>
		</table>			
	</div>
	<div class="blank"></div>
	<div class="flowBox">
		<h6>
			<span>{$lang.consignee_info}</span><a href="flow.php?step=consignee" class="f6">{$lang.modify}</a>
		</h6>
		<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
			<tr>
				<td bgcolor="#ffffff">{$lang.consignee_name}:</td>
				<td bgcolor="#ffffff">{$consignee.consignee}</td>
				<td bgcolor="#ffffff">{$lang.email_address}:</td>
				<td bgcolor="#ffffff">{$consignee.email}</td>
			</tr>
			<if condition="$total['real_goods_count'] gt 0">
			<tr>
				<td bgcolor="#ffffff">{$lang.detailed_address}:</td>
				<td bgcolor="#ffffff">{$consignee.address} </td>
				<td bgcolor="#ffffff">{$lang.postalcode}:</td>
				<td bgcolor="#ffffff">{$consignee.zipcode}</td>
			</tr>
			</if>
			<tr>
				<td bgcolor="#ffffff">{$lang.phone}:</td>
				<td bgcolor="#ffffff">{$consignee.tel} </td>
				<td bgcolor="#ffffff">{$lang.backup_phone}:</td>
				<td bgcolor="#ffffff">{$consignee.mobile}</td>
			</tr>
			<if condition="$total['real_goods_count'] gt 0">
			<tr>
				<td bgcolor="#ffffff">{$lang.sign_building}:</td>
				<td bgcolor="#ffffff">{$consignee.sign_building} </td>
				<td bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
				<td bgcolor="#ffffff">{$consignee.best_time}</td>
			</tr>
			</if>				
		</table>
	</div>
	<div class="blank"></div>
	
	<if condition="$total['real_goods_count'] neq 0">
		<div class="flowBox">
			<h6>
				<span>{$lang.shipping_method}</span>
			</h6>
			<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="shippingTable">
				<tr>
					<th bgcolor="#ffffff" width="5%">&nbsp;</th>
					<th bgcolor="#ffffff" width="25%">{$lang.name}</th>
					<th bgcolor="#ffffff">{$lang.describe}</th>
					<th bgcolor="#ffffff" width="15%">{$lang.fee}</th>
					<th bgcolor="#ffffff" width="15%">{$lang.free_money}</th>
					<th bgcolor="#ffffff" width="15%">{$lang.insure_fee}</th>
				</tr>
				<volist name="shipping_list" id="shipping">
				<tr>
					<td bgcolor="#ffffff" valign="top">
						<input name="shipping" type="radio" value="{$shipping.shipping_id}" {if $order.shipping_id eq $shipping.shipping_id}checked="true"{/if} supportCod="{$shipping.support_cod}" insure="{$shipping.insure}" onclick="selectShipping(this)" />
					</td>
					<td bgcolor="#ffffff" valign="top"><strong>{$shipping.shipping_name}</strong></td>
					<td bgcolor="#ffffff" valign="top">{$shipping.shipping_desc}</td>
					<td bgcolor="#ffffff" align="right" valign="top">{$shipping.format_shipping_fee}</td>
					<td bgcolor="#ffffff" align="right" valign="top">{$shipping.free_money}</td>
					<td bgcolor="#ffffff" align="right" valign="top">{if $shipping.insure neq 0}{$shipping.insure_formated}{else}{$lang.not_support_insure}{/if}</td>
				</tr>
				</volist>
				<tr>
					<td colspan="6" bgcolor="#ffffff" align="right">
						<label for="ECS_NEEDINSURE">
							<input name="need_insure" id="ECS_NEEDINSURE" type="checkbox"  onclick="selectInsure(this.checked)" value="1" {if $order.need_insure}checked="true"{/if} {if $insure_disabled}disabled="true"{/if}  />
								{$lang.need_insure}
						</label>
					</td>
				</tr>
			</table>
		</div>
		<div class="blank"></div>
	<else/>
		<input name = "shipping" type="radio" value = "-1" checked="checked"  style="display:none"/>
	</if>

	<if condition="$is_exchange_goods neq 1 or $total['real_goods_count'] neq 0">
		<div class="flowBox">
			<h6>
				<span>{$lang.payment_method}</span>
			</h6>
			<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="paymentTable">
				<tr>
					<th width="5%" bgcolor="#ffffff">&nbsp;</th>
					<th width="20%" bgcolor="#ffffff">{$lang.name}</th>
					<th bgcolor="#ffffff">{$lang.describe}</th>
					<th bgcolor="#ffffff" width="15%">{$lang.pay_fee}</th>
				</tr>				
				<!-- 循环支付方式 -->
				<volist name="payment_list" id="payment">
				<tr>
					<td valign="top" bgcolor="#ffffff">
						<input type="radio" name="payment" value="{$payment.pay_id}" <if condition="$order['pay_id']">checked</if> isCod="{$payment.is_cod}" onclick="selectPayment(this)" <if condition="$cod_disabled and $payment['is_cod']">disabled="true"</if> />
					</td>
					<td valign="top" bgcolor="#ffffff"><strong>{$payment.pay_name}</strong></td>
					<td valign="top" bgcolor="#ffffff">{$payment.pay_desc}</td>
					<td align="right" bgcolor="#ffffff" valign="top">{$payment.format_pay_fee}</td>
				</tr>
				</volist>
				<!--循环支付方式 -->
			</table>
		</div>
	<else/>
		<input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
	</if>
	<div class="blank"></div>
	
	<!-- 是否有包装 -->
	<if condition="$pack_list">
		<div class="flowBox">
			<h6>
				<span>{$lang.goods_package}</span>
			</h6>
			<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="packTable">
				<tr>
					<th width="5%" scope="col" bgcolor="#ffffff">&nbsp;</th>
					<th width="35%" scope="col" bgcolor="#ffffff">{$lang.name}</th>
					<th width="22%" scope="col" bgcolor="#ffffff">{$lang.price}</th>
					<th width="22%" scope="col" bgcolor="#ffffff">{$lang.free_money}</th>
					<th scope="col" bgcolor="#ffffff">{$lang.img}</th>
				</tr>
				<tr>
					<td valign="top" bgcolor="#ffffff">
						<input type="radio" name="pack" value="0" <if condition="$order['pack_id'] eq 0">checked="true"</if> onclick="selectPack(this)" />
					</td>
					<td valign="top" bgcolor="#ffffff"><strong>{$lang.no_pack}</strong></td>
					<td valign="top" bgcolor="#ffffff">&nbsp;</td>
					<td valign="top" bgcolor="#ffffff">&nbsp;</td>
					<td valign="top" bgcolor="#ffffff">&nbsp;</td>
				</tr>
				<!-- 循环包装 -->
				<volist name="pack_list" id="pack">
				<tr>
					<td valign="top" bgcolor="#ffffff">
						<input type="radio" name="pack" value="{$pack.pack_id}" <if condition="$order['pack_id']">checked="true"</if> onclick="selectPack(this)" />
					</td>
					<td valign="top" bgcolor="#ffffff"><strong>{$pack.pack_name}</strong></td>
					<td valign="top" bgcolor="#ffffff" align="right">{$pack.format_pack_fee}</td>
					<td valign="top" bgcolor="#ffffff" align="right">{$pack.format_free_money}</td>
					<td valign="top" bgcolor="#ffffff" align="center">
						<!-- 是否有图片 -->
						<if condition="$pack['pack_img']">
							<a href="data/packimg/{$pack.pack_img}" target="_blank" class="f6">{$lang.view}</a>
						<else/>
							{$lang.no}
						</if>
					</td>
				</tr>
				</volist>
			</table>
		</div>
		<div class="blank"></div>
	</if>

	<!-- 是否有贺卡 -->
	<if condition="$card_list">
		<div class="flowBox">
			<h6>
				<span>{$lang.goods_card}</span>
			</h6>
			<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="cardTable">
				<tr>
					<th bgcolor="#ffffff" width="5%" scope="col">&nbsp;</th>
					<th bgcolor="#ffffff" width="35%" scope="col">{$lang.name}</th>
					<th bgcolor="#ffffff" width="22%" scope="col">{$lang.price}</th>
					<th bgcolor="#ffffff" width="22%" scope="col">{$lang.free_money}</th>
					<th bgcolor="#ffffff" scope="col">{$lang.img}</th>
				</tr>
				<tr>
					<td bgcolor="#ffffff" valign="top">
						<input type="radio" name="card" value="0" <if condition="$order['card_id'] eq 0">checked="true"</if> onclick="selectCard(this)" />
					</td>
					<td bgcolor="#ffffff" valign="top"><strong>{$lang.no_card}</strong></td>
					<td bgcolor="#ffffff" valign="top">&nbsp;</td>
					<td bgcolor="#ffffff" valign="top">&nbsp;</td>
					<td bgcolor="#ffffff" valign="top">&nbsp;</td>
				</tr>
				<!-- 循环贺卡 -->
				<volist name="card_list" id="card">
					<tr>
						<td valign="top" bgcolor="#ffffff">
							<input type="radio" name="card" value="{$card.card_id}" <if condition="$order['card_id'] eq $card['card_id']">checked="true"</if> onclick="selectCard(this)"  />
						</td>
						<td valign="top" bgcolor="#ffffff">
							<strong>{$card.card_name}</strong>
						</td>
						<td valign="top" align="right" bgcolor="#ffffff">{$card.format_card_fee}</td>
						<td valign="top" align="right" bgcolor="#ffffff">{$card.format_free_money}</td>
						<td valign="top" align="center" bgcolor="#ffffff">
							<if condition="$card['card_img}']">
								<a href="data/cardimg/{$card.card_img}" target="_blank" class="f6">{$lang.view}</a>
							<else/>
								{$lang.no}
							</if>
						</td>
					</tr>
				</volist>
				<tr>
					<td bgcolor="#ffffff"></td>
					<td bgcolor="#ffffff" valign="top">
						<strong>{$lang.bless_note}:</strong>
					</td>
					<td bgcolor="#ffffff" colspan="3">
						<textarea name="card_message" cols="60" rows="3" style="width:auto; border:1px solid #ccc;">{$order.card_message}</textarea>
					</td>
				</tr>
			</table>
		</div>
		<div class="blank"></div>
	</if>

	<div class="flowBox">
		<h6>
			<span>{$lang.other_info}</span>
		</h6>
		<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
			<if condition="$allow_use_surplus">
			<tr>
				<td width="20%" bgcolor="#ffffff"><strong>{$lang.use_surplus}: </strong></td>
				<td bgcolor="#ffffff">
					<input name="surplus" type="text" class="inputBg" id="ECS_SURPLUS" size="10" value="{$order.surplus}" onblur="changeSurplus(this.value)" <if condition="$disable_surplus">disabled="disabled"</if> />
					{$lang.your_surplus}{$your_surplus} 
					<span id="ECS_SURPLUS_NOTICE" class="notice"></span>
				</td>
			</tr>
			</if>
			<!-- 是否使用积分 -->
			<if condition="$allow_use_integral">
				<tr>
					<td bgcolor="#ffffff"><strong>{$lang.use_integral}</strong></td>
					<td bgcolor="#ffffff">
						<input name="integral" type="text" class="input" id="ECS_INTEGRAL" onblur="changeIntegral(this.value)" value="{$order.integral}" size="10" />
						{$lang.can_use_integral}:{$your_integral} {$points_name}，{$lang.noworder_can_integral}{$order_max_integral}  {$points_name}. 
						<span id="ECS_INTEGRAL_NOTICE" class="notice"></span>
					</td>
				</tr>
			</if>
			<!-- 是否使用红包 -->
			<if condition="$allow_use_bonus">
				<tr>
					<td bgcolor="#ffffff"><strong>{$lang.use_bonus}:</strong></td>
					<td bgcolor="#ffffff">
						{$lang.select_bonus}
						<select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
							<option value="0"  <if condition="$order['bonus_id'] eq 0">selected</if> >
								{$lang.please_select}
							</option>							
							<volist name="bonus_list" id="bonus">
								<option value="{$bonus.bonus_id}" <if condition="$order['bonus_id'] eq $bonus['bonus_id']">selected</if> >
									{$bonus.type_name}[{$bonus.bonus_money_formated}]
								</option>
							</volist>
						</select>
						{$lang.input_bonus_no}
						<input name="bonus_sn" type="text" class="inputBg" size="15" value="{$order.bonus_sn}" />
						<input name="validate_bonus" type="button" class="bnt_blue_1" value="{$lang.validate_bonus}" onclick="validateBonus(document.forms['theForm'].elements['bonus_sn'].value)" style="vertical-align:middle;" />
					</td>
				</tr>
			</if>
			
			<!-- 能否开发票 -->
			<if condition="$inv_content_list">
				<tr>
					<td bgcolor="#ffffff">
						<strong>{$lang.invoice}:</strong>
						<input name="need_inv" type="checkbox"  class="input" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" <if condition="$order['need_inv']">checked="true"</if> />
					</td>
					<td bgcolor="#ffffff">
						<if condition="$inv_type_list">
							{$lang.invoice_type}
							<select name="inv_type" id="ECS_INVTYPE" <if condition="$order['need_inv'] neq 1">disabled="true"</if> onchange="changeNeedInv()" style="border:1px solid #ccc;">
								{html_options options=$inv_type_list selected=$order.inv_type}
							</select>
						</if>
						{$lang.invoice_title}
						<input name="inv_payee" type="text"  class="input" id="ECS_INVPAYEE" size="20" <if condition="$order['need_inv'] eq false">disabled="true"</if> value="{$order.inv_payee}" onblur="changeNeedInv()" />
						{$lang.invoice_content}
						<select name="inv_content" id="ECS_INVCONTENT" <if condition="$order['need_inv'] neq 1">disabled="true"</if> onchange="changeNeedInv()" style="border:1px solid #ccc;">
							{html_options values=$inv_content_list output=$inv_content_list selected=$order.inv_content}
						</select>
					</td>
				</tr>
			</if>
			<tr>
				<td valign="top" bgcolor="#ffffff">
					<strong>{$lang.order_postscript}:</strong>
				</td>
				<td bgcolor="#ffffff">
					<textarea name="postscript" cols="80" rows="3" id="postscript" style="border:1px solid #ccc;">{$order.postscript}</textarea>
				</td>
			</tr>
			<!--是否使用缺货处理 -->
			<if condition="$how_oos_list">
				<tr>
					<td bgcolor="#ffffff"><strong>{$lang.booking_process}:</strong></td>
					<td bgcolor="#ffffff">
					<volist name="how_oos_list" id="how_oos_name" key="how_oos_id">
						<label>
							<input name="how_oos" type="radio" value="{$how_oos_id}" <if condition="$order['how_oos'] eq $how_oos_id">checked</if> onclick="changeOOS(this)" />
							{$how_oos_name}
						</label>
					</volist>
					</td>
				</tr>
			</if>
		</table>
	</div>
	<div class="blank"></div>
	
	<div class="flowBox">
		<h6>
			<span>{$lang.fee_total}</span>
		</h6>
		<include files="Flow:order_total"/>
		<div align="center" style="margin:8px auto;">
			<input type="image" src="images/bnt_subOrder.gif" />
			<input type="hidden" name="step" value="done" />
		</div>
	</div>
</form>